infobar: Add property annotations
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2021 02:57:15 +0000 (21:57 -0500)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 11 Mar 2021 16:37:32 +0000 (16:37 +0000)
Connect properties, getters, and setters with annotations.

gtk/gtkinfobar.c

index 05ad893e1890545f82cfa6ab9ace079a77e9c6a1..e910597ab930c87ba19741db94141dbef7aa8b7e 100644 (file)
@@ -346,7 +346,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
   klass->close = gtk_info_bar_close;
 
   /**
-   * GtkInfoBar:message-type:
+   * GtkInfoBar:message-type: (attributes org.gtk.Property.get=gtk_info_bar_get_message_type org.gtk.Property.set=gtk_info_bar_set_message_type)
    *
    * The type of the message.
    *
@@ -361,7 +361,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
                        GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkInfoBar:show-close-button:
+   * GtkInfoBar:show-close-button: (attributes org.gtk.Property.get=gtk_info_bar_get_show_close_button org.gtk.Property.set=gtk_info_bar_set_show_close_button)
    *
    * Whether to include a standard close button.
    */
@@ -373,7 +373,7 @@ gtk_info_bar_class_init (GtkInfoBarClass *klass)
                           GTK_PARAM_READWRITE|G_PARAM_CONSTRUCT|G_PARAM_EXPLICIT_NOTIFY);
 
   /**
-   * GtkInfoBar:revealed:
+   * GtkInfoBar:revealed: (attributes org.gtk.Property.get=gtk_info_bar_get_revealed org.gtk.Property.set=gtk_info_bar_set_revealed)
    *
    * Whether the info bar shows its contents.
    */
@@ -1070,7 +1070,7 @@ gtk_info_bar_buildable_add_child (GtkBuildable *buildable,
 }
 
 /**
- * gtk_info_bar_set_message_type:
+ * gtk_info_bar_set_message_type: (attributes org.gtk.Method.set_property=message-type)
  * @info_bar: a `GtkInfoBar`
  * @message_type: a #GtkMessageType
  *
@@ -1109,7 +1109,7 @@ gtk_info_bar_set_message_type (GtkInfoBar     *info_bar,
 }
 
 /**
- * gtk_info_bar_get_message_type:
+ * gtk_info_bar_get_message_type: (attributes org.gtk.Method.get_property=message-type)
  * @info_bar: a `GtkInfoBar`
  *
  * Returns the message type of the message area.
@@ -1126,7 +1126,7 @@ gtk_info_bar_get_message_type (GtkInfoBar *info_bar)
 
 
 /**
- * gtk_info_bar_set_show_close_button:
+ * gtk_info_bar_set_show_close_button: (attributes org.gtk.Method.set_property=show-close-button)
  * @info_bar: a `GtkInfoBar`
  * @setting: %TRUE to include a close button
  *
@@ -1148,7 +1148,7 @@ gtk_info_bar_set_show_close_button (GtkInfoBar *info_bar,
 }
 
 /**
- * gtk_info_bar_get_show_close_button:
+ * gtk_info_bar_get_show_close_button: (attributes org.gtk.Method.get_property=show-close-button)
  * @info_bar: a `GtkInfoBar`
  *
  * Returns whether the widget will display a standard close button.
@@ -1164,7 +1164,7 @@ gtk_info_bar_get_show_close_button (GtkInfoBar *info_bar)
 }
 
 /**
- * gtk_info_bar_set_revealed:
+ * gtk_info_bar_set_revealed: (attributes org.gtk.Method.set_property=revealed)
  * @info_bar: a `GtkInfoBar`
  * @revealed: The new value of the property
  *
@@ -1191,7 +1191,7 @@ gtk_info_bar_set_revealed (GtkInfoBar *info_bar,
 }
 
 /**
- * gtk_info_bar_get_revealed:
+ * gtk_info_bar_get_revealed: (attributes org.gtk.Method.get_property=revealed)
  * @info_bar: a `GtkInfoBar`
  *
  * Returns whether the info bar is currently revealed.